import request from '@/utils/request'

export function login(mobile, password, checkCode) {
  return request({
    url: 'common/login/form',
    method: 'get',
    params: {
      mobile,
      password,
      checkCode,
      clientFrom: "pc_web",
      loginMethod: 'password_check_code',
    }
  })
}

export function getInfo() {
  return request({
    url: 'admin/info',
    method: 'get'
  })
}
//发送短信验证码
export function getLoginCheckCode(mobile) {
  return request({
    url: 'common/check-code/login',
    method: 'get',
    params: {
      mobile
    }
  })
}
